import Vue from 'vue'
import VueRouter from 'vue-router'
import AdminLoginView from "../views/AdminLoginView";


Vue.use(VueRouter)

/*登录页面*/
const routes = [
  {
    path: '/',
    component: AdminLoginView,
    children: []
  },
  {
    /*选择商品模块*/
    path: '/other/temp/ChooseProductServe',
    component: () => import('../views/other/temp/ChooseProductServe')
  },
  {
    /*选择商品模块*/
    path: '/other/temp/Product',
    component: () => import('../views/other/temp/ProductView')
  },
  {
    /*homeview页面*/
    path: '/homeview',
    component: () => import('../views/HomeView'),
    children:[
      {
        /*商品详情VUE*/
        path: '/sys-product/temp/products/ProductDetail',
        component: () => import( '../views/sys-product/temp/ProductDetailView.vue')
      },
      {
        /*商品展示VUE*/
        path: '/sys-product/temp/products/ProductShow',
        component: () => import( '../views/sys-product/temp/ProductShowView.vue')
      },
      {
        /*修改商品VUE*/
        path: '/sys-product/temp/products/ProductUpdate',
        component: () => import( '../views/sys-product/temp/ProductUpdateView.vue')
      },
      {
        /*商品列表VUE*/
        path: '/sys-product/temp/products/ProductList',
        component: () => import( '../views/sys-product/temp/ProductListView.vue')
      },

      {
        /*添加商品*/
        path: '/sys-product/temp/products/ProductAddNew',
        component: () => import( '../views/sys-product/temp/ProductAddNewView.vue')
      },
      {
        /*服务项目列表*/
        path: '/sys-serve/temp/service/list',
        component: () => import('../views/sys-serve/temp/ServicesListView.vue')
      },
      {
        /*服务类别列表*/
        path: '/sys-serve/temp/serve/list',
        component: () => import('../views/sys-serve/temp/ServeListView.vue')
      },
      {
        /*添加服务类别*/
        path: '/sys-serve/temp/serve/add-new',
        component: () => import('../views/sys-serve/temp/ServeAddNewView.vue')
      },
      {
        /*添加服务类别*/
        path: '/sys-serve/temp/service/add-new',
        component: () => import('../views/sys-serve/temp/ServicesAddNewView.vue')
      },
      {
        /*修改服务类别*/
        path: '/sys-serve/temp/service/update',
        component: () => import('../views/sys-serve/temp/ServicesUpdateView.vue')
      },
      {
        /*天气模块*/
        path: '/',
        component: () => import('../views/other/temp/FirstView')
      },
      {
        /*评价模块*/
        path: '/other/temp/PJVIew',
        component: () => import('../views/other/temp/PJVIew')
      },
      {
        /*员工列表*/
        path: '/sys-admin/temp/admin/list',
        component: () => import('../views/sys-admin/temp/AdminListView')
      },
      {
        /*修改员工信息*/
        path: '/sys-admin/temp/admin/update',
        component: () => import('../views/sys-admin/temp/AdminUpdateView')
      },
      {
        /*添加员工*/
        path: '/sys-admin/temp/admin/add-new',
        component: () => import('../views/sys-admin/temp/AdminAddNewView')
      },
      {
        /*客户列表*/
        path: '/sys-user/temp/user/list',
        component: () => import('../views/sys-user/temp/UserListView')
      },
      {
        /*修改员工信息*/
        path: '/sys-user/temp/user/update',
        component: () => import('../views/sys-user/temp/UserUpdateView')
      },
      {
        /*添加员工*/
        path: '/sys-user/temp/user/add-new',
        component: () => import('../views/sys-user/temp/UserAddNewView')
      },

    ]
  },
  {
    path: '/other/temp/WorkingView',
    component: () => import('../views/other/temp/WorkingVIew'),
    children: []
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
